import Vue from 'vue'
import Router from 'vue-router'
import BlogList from '@/components/BlogList'
import CreatBlog from '@/components/CreatBlog'
import BlogDetail from '@/components/BlogDetail'

Vue.use(Router)

export default new Router({
  mode: 'history',
  routes: [{
      path: '/',
      name: 'BlogList',
      component: BlogList
    },
    {
      path: '/CreatBlog',
      name: 'CreatBlog',
      component: CreatBlog
    },
    {
      path: '/BlogDetail/:id',
      name: 'BlogDetail',
      component: BlogDetail
    }
  ]
})
